package com.webfinal.backsystem.dao;

import com.webfinal.backsystem.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    int deleteByPrimaryKey(Integer orderDetailId);

    int insert(OrderDetail record);

    OrderDetail selectByPrimaryKey(Integer orderDetailId);

    List<OrderDetail> selectAll();

    int updateByPrimaryKey(OrderDetail record);

    List<OrderDetail> selectByOrderId(int orderId);

    List<OrderDetail> query(@Param("orderId")int orderId, @Param("flag")int flag);
}